//
//  HMUserInfoModel.m
//  获得
//
//  Created by mac on 17/1/9.
//  Copyright © 2017年 mac.gu. All rights reserved.
//

#import "HMUserInfoModel.h"

@implementation HMUserInfoModel

//归档时调用 作用:告诉系统对象的哪些属性要存储

- (void)encodeWithCoder:(NSCoder *)coder
{
    [coder encodeObject:self.phone_num forKey:@"phone_num"];
    [coder encodeObject:self.user_id forKey:@"user_id"];
    [coder encodeObject:self.token forKey:@"token"];

}
//解档时调用 作用:告诉系统对象的哪些属性要读取
- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        self.token = [coder decodeObjectForKey:@"token"];
        self.user_id = [coder decodeObjectForKey:@"user_id"];
        self.phone_num = [coder decodeObjectForKey:@"phone_num"];
    }
    return self;
}



@end
